import React from "react";
import {useParams} from "react-router-dom";
import DetailList from "./DetailList";

const Detail=()=>{
    const params=useParams()
    return (
        <div>
            <DetailList id={params.id}/>

        </div>
    )
}

export default Detail